I'm working on setting up some functionality using EWS Java 1.2 and Exchange 2010 SP2. Currently, I'm working on Appointment generation. What I'd like to do is add a very small attachment to each Appointment. I'm running into some issues.
This attachment is always attached to the MeetingRequest that goes out to the attendees. I do not want it to be there, or at the very least, the end user should not be able to see it. Okay, so I've tried working with inline attachments. This works, but when the Appointment is modified by the user, the attachment disappears. Okay, so I try embedding the attachment somewhere in an HTML tag in the body. Now the user may get an unsafe content warning if I use <img>, <object>, etc. Okay, so I can embed it in a "safe" tag, such as a <span>, but this still goes byebye upon save, even if the text within the <span> remains. It also relies on data (the body) that the user can easily modify/remove on the Appointment, so this really isn't viable.
Is there another solution here? Is there a way to ensure that the attachment is either never sent to users in the request or to keep it hidden without the possibility of it disappearing on updates or being inadvertently removed by a user? It's fine if the user can see that the Appointment itself has an attachment if they view the original (not the one created on an attendee calendar), but it should remain if the Appointment is updated.
Then again, the problem seems to be at least in part due to the Outlook webapp completely removing any HTML it doesn't like for whatever reason...
- Edited by Someone's Dev Account 14 hours 44 minutes ago